package com.dragon.mmochat.message;

import com.dragon.mmochat.MmochatConstant;
import com.skymobi.buffer.SkymobiBuffer;
import com.skymobi.message.SkymobiModuleMessage;

public class Mmochat_SendMultiServerWuDaoResult extends SkymobiModuleMessage {
	int eventType;
	String title;
	String content;

	public Mmochat_SendMultiServerWuDaoResult() {
		setMsgCode(MmochatConstant.MSGCODE_MMOCHAT_SEND_MULTISERVER_WUDAO_RESULT);
	}

	public Mmochat_SendMultiServerWuDaoResult(int dstId) {
		setDstId(dstId);
		setMsgCode(MmochatConstant.MSGCODE_MMOCHAT_SEND_MULTISERVER_WUDAO_RESULT);
	}

	@Override
	protected void decodeBody(SkymobiBuffer in) {
		eventType = in.getInt();
		title = in.getPrefixedString(2);
		content = in.getPrefixedString(2);
	}

	@Override
	protected void encodeBody(SkymobiBuffer out) {
		out.putInt(eventType);
		out.putPrefixedString(title, 2);
		out.putPrefixedString(content, 2);
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public int getEventType() {
		return eventType;
	}

	public void setEventType(int eventType) {
		this.eventType = eventType;
	}

}
